// @ts-ignore
/* eslint-disable */

/**
 * 请勿随意修改。
 * */

import { request, type RequestOptions } from '@/utils/request'

/** 获取账户资料 GET /getInfo */
export async function accountProfile(options?: RequestOptions) {
  return request<API.AccountInfo>('/getInfo', {
    method: 'GET',
    ...(options || {})
  })
}

/** 获取权限列表 GET /getRouters */
export async function accountPermissions(options?: RequestOptions) {
  return request<API.MenusInfo[]>('/getRouters', {
    method: 'GET',
    ...(options || {})
  })
}

/** 账户登出 POST /api/account/logout */
export async function accountLogout(body: object, options?: RequestOptions) {
  return request<any>('/logout', {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}
